//
//  Common.swift
//  FZQSinLangWeiBo
//
//  Created by fuzhiqiang on 17/1/17.
//  Copyright © 2017年 fzq. All rights reserved.
//
//相当于oc中的pch文件

import UIKit
//设置屏幕的宽高
let FZQSCRENW = UIScreen.main.bounds.width
let FZQSCRENH = UIScreen.main.bounds.height
//微博主题颜色
let FZQThemeColor = UIColor.orange
//RGB颜色
func RGB(r: Float,g: Float,b: Float,alpha: Float = 1) ->UIColor{
    return UIColor(colorLiteralRed: r/Float(255), green: g/Float(255), blue: b/Float(255), alpha: alpha)
}

    // 随机颜色
    func FZQrandomColor() -> UIColor{
        let r =  Float(arc4random()%256)
        let g =  Float(arc4random()%256)
        let b =  Float(arc4random()%256)
        return RGB(r: r, g: g, b: b)
    }

		
